package com.design.create.bridge;

/**
 * 抽象角色
 * 包含一个实现化角色的引用，通过引用调用实现化角色行为
 */
public abstract class Abstraction {

    private Implementor implementor;

    public Abstraction(Implementor implementor) {
        this.implementor = implementor;
    }

    public void operation() {
        implementor.operationImpl();
    }
}
